package com.zh.system.domain.dto;

import com.zh.web.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.math.BigInteger;

@ApiModel("添加字典类型参数")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AddDicTypeDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message = "字典类型不能为空")
    @Max(value = 50, message = "字典类型长度不能超过50")
    @ApiModelProperty(value = "字典类型",required = true)
    private String dicType;
    @NotEmpty(message = "字典类型名称不能为空")
    @Max(value = 255, message = "字典类型名称长度不能超过50")
    @ApiModelProperty(value = "字典类型名称",required = true)
    private String dicName;
    @ApiModelProperty(value = "排序")
    private String dicSort;
    @ApiModelProperty(value = "父级id 默认为0 根id")
    private Long pId = 0L;
}
